<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
	
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>	
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="css/general.css" type="text/css">
<title>L33T - Purchase Book</title>
</head>
<body>

	<div class="div_header" style="padding-bottom: 15px;">
		<span style="font-family: Arial; font-size: 14px; text-decoration: underline;">
			Digital Books
		</span>
	</div>
	<div class="div_line"></div>
	
	<c:if test="${mensaje != '' && not empty mensaje}">
		<div class="${css}">
			${mensaje}
		</div>	
	</c:if>

	<form:form action="purchase.htm" commandName="pago">
	<fieldset style="width: 350px;">
		<legend style="font-family: Arial; font-size: 12px;">Credit Card Information</legend>
		
		<div class="divFormRow">
			<div class="divFormRowLeft">Credit Card Holder</div>
			<div class="divFormRowRight">
				<form:input path="creditCardHolder" />
			</div>
			<div class="clearer"></div>
		</div>
		<div class="divFormRow">
			<div class="divFormRowLeft">Credit Card Number</div>
			<div class="divFormRowRight">
				<form:input path="creditCardNumber" />
			</div>
			<div class="clearer"></div>
		</div>
		<div class="divFormRow">
			<div class="divFormRowLeft">Expiration Date</div>
			<div class="divFormRowRight">
				<form:input path="expirationDate" />
			</div>
			<div class="clearer"></div>
		</div>
		<div class="divFormRow">
			<div class="divFormRowLeft">CSC</div>
			<div class="divFormRowRight">
				<form:input path="csc" />
			</div>
			<div class="clearer"></div>
		</div>
		<div class="divFormRow">
			<div class="divFormRowLeft">Total</div>
			<div class="divFormRowRight">
			 	<form:input path="total" readonly="true" />
			</div>
			<div class="clearer"></div>
		</div>
		<div class="divFormRow">
			<div class="divFormRowLeft">.<br/>.<br/>.</div>
			<div class="divFormRowRight">
			 	.<br/>.<br/>.
			</div>
			<div class="clearer"></div>
		</div>
		
		<input type="submit" value="Pay" />
		<input type="button" value="Cancel" onclick="javascript:window.close();" />
	</fieldset>
	</form:form>

</body>
</html>